<?php
//启动会话
session_start();
$_SESSION["name"] = "我恶中";
$_SESSION["Password"] = "123456";

//记录登录次数
if(empty($_SESSION["id"])){
    echo $_SESSION['id'] = 1;
}else{
    echo $_SESSION["id"] += 1;
}